<?php
$data = $dataDetail['News'];
?>
<div class="w">
    <div class="case-title clearfix">
    <?php
        if ($nextDetail) {
            echo $this->Html->link(
                $this->Html->image('/images/n_next.gif',array('width'=>'12','height'=>'15', 'alt'=>'下一个案例', 'title'=>'下一个新闻')),
                "/news/view/{$nextDetail['News']['id']}/type:$caseType",
                array('escape' => false, 'class'=>'fr')
            );

        }
        echo $this->Html->link(
            $this->Html->image('/images/n_back.gif', array('width'=>'23','height'=>'14', 'alt'=>'返回列表', 'title'=>'返回列表')),
            "/news/index/type:$caseType",
            array('escape' => false, 'class'=>'fr')
        );
        if ($prevDetail) {
            echo $this->Html->link(
                $this->Html->image('/images/n_prev.gif',array('width'=>'12','height'=>'15', 'alt'=>'上一个新闻', 'title'=>'上一个新闻')),
                "/news/view/{$prevDetail['News']['id']}/type:$caseType",
                array('escape' => false, 'class'=>'fr')
            );
        }
    ?>
    </div>     
    <div class="news-list" style="margin-top:20px;">
        <?php echo $this->Html->image('/'.$data['news_icon'], array('width'=>'129','height'=>'90')) ?>
        <h3><?php echo h($data['title'])?></h3>
        <h4><?php echo h($tabList[$data['news_category_id']])?> <?php echo h(date('Y.m.d', strtotime($data['release_date'])))?></h4>
        <p><?php echo nl2br(h($data['news_desc']))?></p>
        <?php if(!empty($data['news_detail_url'])): ?>
        <p>案例详情查看：</p>
        <p><?php echo $this->Html->link($data['news_detail_url'], $data['news_detail_url'], array('class'=>'blue nofl','target'=>'_blank'))?></p>
        <?php endif; ?>
        <?php
        $relationUrls = nl2br(h($data['news_relation_url']));
        $urls = explode('<br />', $relationUrls);
        if (!empty($urls) && trim($urls['0']) != '') {
            echo "<p>媒体相关报道：</p>";
        }
        ?>
        <p>
<?php 
        foreach ($urls as $url) {
            echo $this->Html->link($url, $url, array('class'=>'blue nofl','target'=>'_blank')), '<br />';
        }
?>
</p>
        <?php foreach(json_decode($data['images']) as $image):?> 
        <?php if(!empty($image)) echo $this->Html->image('/'.$image, array('class'=>'fr')) ?>
        <?php endforeach; ?>
     </div>  
   </div>
